package com.ty.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel("供应商")
public class Supplier {
    int id;

    @ApiModelProperty("供应商名称")
    @NotBlank(message = "供应商名称不能为空")
    String name;
    String area;
    String address;
    String describes;
    int s_category_id;
    String factor;
    String logo;
    int material_id;
    String license;

    String account;

    String password;

    @Valid
    SupplierContact contact;

}
